<?php
/*------------------------------------------------------------------------
# com_vportfolio - Vportfolio component
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


/**
* @package Joomla
* @subpackage Vportfolio
*/
class TOOLBAR_vportfolio 
{
	function _EDIT(){
		$cid = JRequest::getVar( 'cid', array(0) );
		$edit		= JRequest::getVar('edit',true);
		$text = intval($edit) ? JText::_( 'Edit' ) : JText::_( 'New' );
		JToolBarHelper::title( JText::_( 'Portfolio' ) . ': <small><small>[ '. $text .' ]</small></small>' , 'generic.png' );

		JToolBarHelper::save();
		JToolBarHelper::apply();
		JToolBarHelper::custom( 'cancel', 'cancel.png', 'cancel_f2.png', 'Cancel',false );
	}

	function _DEFAULT() {
		/*
		 * DEVNOTE: This should make sense by itself now... 
		 */
		JToolBarHelper::publishList();
		JToolBarHelper::unpublishList();
		JToolBarHelper::title(   JText::_( 'Portfolio Manager' ), 'generic.png' );
		JToolBarHelper::custom( 'cancel', 'cancel.png', 'cancel_f2.png', 'Cancel',false );
		JToolBarHelper::deleteList();
		JToolBarHelper::editListX();
		JToolBarHelper::addNewX();
		JToolBarHelper::help( 'screen.helloworld' );
	}
}
?>
